<?php

$section = "ADMIN"; 

$userlevel = $_SESSION['userlevel']; 


require_once '../global.inc.php'; 


$sql = "SELECT config_id,company_name,support_email,soa_ttl,soa_mname,soa_rname,soa_serial,soa_refresh,soa_retry,soa_expire,soa_cache,primary_dns,secondary_dns,tertiary_dns,default_mx,default_ip
	FROM binder_config LIMIT 1"; 



$rs=$db->mRun($sql); 

while($row=mysql_fetch_assoc($rs)) {
	$tpl->assign("company_name",$row['company_name']); 
	$tpl->assign("support_email",$row['support_email']); 
	$tpl->assign("soa_ttl",$row['soa_ttl']); 
	$tpl->assign("soa_mname",$row['soa_mname']); 
	$tpl->assign("soa_rname",$row['soa_rname']); 
	$tpl->assign("default_serial",$row['soa_serial']); 
	$tpl->assign("default_refresh",$row['soa_refresh']); 
	$tpl->assign("default_retry",$row['soa_retry']); 
	$tpl->assign("default_expire",$row['soa_expire']); 			
	$tpl->assign("default_cache",$row['soa_cache']); 
	$tpl->assign("default_ip",$row['default_ip']); 
	$tpl->assign("default_mx",$row['default_mx']); 
	
	$tpl->assign("pdns",$row['primary_dns']); 
	$tpl->assign("sdns",$row['secondary_dns']); 
	$tpl->assign("tdns",$row['tertiary_dns']); 
}


$tpl->display('settings.html');  
?>
